/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbOrder;
import com.thinkgem.jeesite.modules.sys.entity.TbSender;
import com.thinkgem.jeesite.modules.sys.entity.TbSenderOrder;

import java.util.List;

/**
 * 配送员管理DAO接口
 * @author huoyan403
 * @version 2016-11-09
 */
@MyBatisDao
public interface TbSenderDao extends CrudDao<TbSender> {
    Integer findShopidByUid(String uid);

    List<TbSender> selectRegistrationIdbyUserId(String userId);

    Integer insertSenderOrder(TbSenderOrder senderOorder);

    TbSender checkSenderByMobile(String mobile);

    TbSenderOrder selectSenderOrderByOrderId(Integer id);

    Integer insertStream(TbOrder tbOrder);
}